package com.jboltai.capability.message;


/**
 * 意图
 */
public class AIIntention {

    /**
     * 意图key
     */
    private String key;

    /**
     * 描述
     */
    private String description;

    /**
     * 示例
     */
    private String[] cases;

    public AIIntention() {
    }

    public static final String NO_MATCH_KEY = "INNER_NO_MATCH";

    public static final AIIntention NO_MATCH = new AIIntention().setKey(NO_MATCH_KEY).setDescription("未匹配到任何意图选项");

    public AIIntention(String key, String description, String... cases) {
        this.key = key;
        this.description = description;
        this.cases = cases;
    }
    public static AIIntention of(String key, String description, String... cases){
        return new AIIntention(key,description,cases);
    }

    public static AIIntention create() {
        return new AIIntention();
    }


    public String getKey() {
        return key;
    }

    public AIIntention setKey(String key) {
        this.key = key;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public AIIntention setDescription(String description) {
        this.description = description;
        return this;
    }

    public String[] getCases() {
        return cases;
    }

    public AIIntention setCases(String[] cases) {
        this.cases = cases;
        return this;
    }
}
